<?php
namespace app\common\validate;
use think\Validate;
class UserBank extends Validate
{
    protected $rule    = [
        'user_name' => 'require',
        'bank_name' => 'require',
        'bank_wangdian' => 'require',
        'bank_no' => 'require|length:16,21     ',
    ];
    protected $message = [
        'user_name.require' => '用户名不能为空',
        'bank_name.require' => '开户行不能为空',
        'bank_wangdian.require' => '开户网点不能为空',
        'bank_no.require' => '银行卡号不能为空',
        'bank_no.length' => '请输入正确的银行卡号',
    ];
    //验证场景
    protected $scene = [
        'bname'  =>  ['bank_name','bank_no'],
    ];
}
